package com.zxl.grocery.modular.crawler.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 来源
 * </p>
 *
 * @author zxl
 * @since 2017-08-31
 */
@TableName("crawler_sources")
public class CrawlerSources extends Model<CrawlerSources> {

    private static final long serialVersionUID = 1951518920037174570L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 来源
     */
    private String source;
    /**
     * 网站logo图片地址
     */
    @TableField("logo_url")
    private String logoUrl;
    /**
     * 状态，0：删除，1：正常，2：失效
     */
    private Integer status;
    /**
     * 网站地址
     */
    @TableField("source_url")
    private String sourceUrl;
    /**
     * 创建人ID
     */
    @TableField("create_user_id")
    private Long createUserId;
    /**
     * 修改人ID
     */
    @TableField("update_user_id")
    private Long updateUserId;
    /**
     * 创建时间
     */
    @TableField("create_date")
    private Date createDate;
    /**
     * 修改时间
     */
    @TableField("modify_date")
    private Date modifyDate;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getLogoUrl() {
        return logoUrl;
    }

    public void setLogoUrl(String logoUrl) {
        this.logoUrl = logoUrl;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getSourceUrl() {
        return sourceUrl;
    }

    public void setSourceUrl(String sourceUrl) {
        this.sourceUrl = sourceUrl;
    }

    public Long getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(Long createUserId) {
        this.createUserId = createUserId;
    }

    public Long getUpdateUserId() {
        return updateUserId;
    }

    public void setUpdateUserId(Long updateUserId) {
        this.updateUserId = updateUserId;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getModifyDate() {
        return modifyDate;
    }

    public void setModifyDate(Date modifyDate) {
        this.modifyDate = modifyDate;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "CrawlerSources{" +
                "id=" + id +
                ", source=" + source +
                ", logoUrl=" + logoUrl +
                ", status=" + status +
                ", sourceUrl=" + sourceUrl +
                ", createUserId=" + createUserId +
                ", updateUserId=" + updateUserId +
                ", createDate=" + createDate +
                ", modifyDate=" + modifyDate +
                "}";
    }
}
